import React from 'react';
import ReactDOM from 'react-dom';

import App from './components/App';

import {BrowserRouter} from 'react-router-dom'

import './css/style.css'

import './mock/mock'

//1.借助 react-redux库 的Provider组件 将store应用到每个组件身上
import {Provider} from 'react-redux'

import {store} from './store/store'

ReactDOM.render(<Provider store={store}>
                    <BrowserRouter>
                        <App />
                    </BrowserRouter>
                </Provider>  , document.getElementById('root'));
